package com.atguigu.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author: mr.zhang
 * @description:
 * @create: 2021-06-21 16:28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result<T> implements Serializable {
    private Integer code;
    private String message;
    private T data;
    public Result(Integer code,String message){
        this(code,message,null);//如果这行报错，请安装lombok插件
    }
}
